<%--
  User: Shengzhao Li
--%>
<%@ attribute name="currentSprint" required="true"
              type="com.andaily.domain.dto.developer.SprintDto" %>
<%@ attribute name="task" required="true"
              type="com.andaily.domain.dto.developer.SprintTaskDto" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@tag pageEncoding="UTF-8" %>

<c:if test="${not currentSprint.finished}">
    <li><a tabindex="-1" href="${contextPath}/developer/task_action/restore/${task.guid}"
           class="confirm"
           confirm-content="Are you sure restore the task to Created?" confirm-title="Confirm restore"><i
            class="icon-fast-backward"></i> Restore</a></li>
    <li class="divider"></li>
    <li><a tabindex="-1" href="${contextPath}/developer/task_action/archive/${task.guid}?status=CANCELED"
           class="confirm" confirm-content="Are you sure archive the task?"><i class="icon-remove"></i>
        Archive</a></li>
</c:if>
<c:if test="${currentSprint.finished}">
    <li><a tabindex="-1" href="javascript:void(0);" class="moveTask"
           load-url="${contextPath}/developer/task_action/load_move/${task.guid}"><i class="icon-move"></i>
        Move...</a></li>
</c:if>